HEX
Server: LiteSpeed
System: Linux eticaretsrv4.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: sioberen (1086)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //home/sioberen/public_html/wp-content/themes/colibri-wp/inc/src/Components/MainContent/Loop.php
<?php

namespace ColibriWP\Theme\Components\MainContent;

use ColibriWP\Theme\Core\ComponentBase;
use ColibriWP\Theme\View;

class Loop extends ComponentBase {

    protected static function getOptions() {
        return array();
    }

    public function renderContent() {
        if ( have_posts() ):
            while ( have_posts() ):
                the_post();

                View::partial( "main", "item_template", array(
                    "component" => $this,
                ) );

            endwhile;
        else:
            View::partial( 'main', '404', array(
                "component" => $this,
            ) );
        endif;
    }
}